#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int bijiao(int a, int b)
{
	int count = 0;
	for (int i = 0; i < 32; i++)
	{
		int ret1 = a & 1;
		int ret2 = b & 1;
		if (ret1!=ret2)
		{
			count++;
		}
		a >>= 1;
		b >>= 1;
	}
	return count;
}

int main()
{
	int a, b;
	scanf("%d %d", &a, &b);
	int count=bijiao(a, b);
	printf("%d\n", count);
	return 0;
}

